﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace GTSDemo.Views
{
    /// <summary>
    /// Interaction logic for SignalInput.xaml
    /// </summary>
    public partial class SignalInput : UserControl
    {
        public SignalInput()
        {
            InitializeComponent();
        }


        public double Radius
        {
            get { return (double)GetValue(RadiusProperty); }
            set { SetValue(RadiusProperty, value); }
        }

        // Using a DependencyProperty as the backing store for Radius.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty RadiusProperty =
            DependencyProperty.Register("Radius", typeof(double), typeof(SignalInput), new PropertyMetadata(20.0));


        public string SignalName
        {
            get { return (string)GetValue(SignalNameProperty); }
            set { SetValue(SignalNameProperty, value); }
        }

        // Using a DependencyProperty as the backing store for SignalName.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty SignalNameProperty =
            DependencyProperty.Register("SignalName", typeof(string), typeof(SignalInput), new PropertyMetadata("SignalName"));



        public bool IsActive
        {
            get { return (bool)GetValue(IsActiveProperty); }
            set { SetValue(IsActiveProperty, value); }
        }

        // Using a DependencyProperty as the backing store for IsActive.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty IsActiveProperty =
            DependencyProperty.Register("IsActive", typeof(bool), typeof(SignalInput), new PropertyMetadata(true));



    }
}
